package objetBo;

import java.util.List;

/**
 *
 * @author verpoorten
 */
public class Location  implements Cloneable{
private Long idLocataire;
    private Long idPersonne;
    private Long idLocation;
    //
    private String nomReference;
    private String societe;
    private String tva;
    private String professionDansBien;
    //private String numeroCompte;
    private String infosComplementaires;
    private String garant;
    private Boolean locatairePrincipal=true;
        
    private List<SuiviLoyer>suiviLoyers;
    private Batiment batiment;
    private boolean estNouveau=false;
    public Location() {
        super();
        estNouveau=false;
    }   

    public List<SuiviLoyer> getSuiviLoyers() {
        return suiviLoyers;
    }

    public void setSuiviLoyers(List<SuiviLoyer> suiviLoyers) {
        this.suiviLoyers = suiviLoyers;
    }

    public boolean isEstNouveau() {
        return estNouveau;
    }

    public void setEstNouveau(boolean estNouveau) {
        this.estNouveau = estNouveau;
    }

    public Batiment getBatiment() {
        return batiment;
    }

    public void setBatiment(Batiment batiment) {
        this.batiment = batiment;
    }

    public Long getIdLocataire() {
        return idLocataire;
    }

    public void setIdLocataire(Long idLocataire) {
        this.idLocataire = idLocataire;
    }

    public Long getIdPersonne() {
        return idPersonne;
    }

    public void setIdPersonne(Long idPersonne) {
        this.idPersonne = idPersonne;
    }

    public Long getIdLocation() {
        return idLocation;
    }

    public void setIdLocation(Long idLocation) {
        this.idLocation = idLocation;
    }

    public String getNomReference() {
        return nomReference;
    }

    public void setNomReference(String nomReference) {
        this.nomReference = nomReference;
    }

    public String getSociete() {
        return societe;
    }

    public void setSociete(String societe) {
        this.societe = societe;
    }

    public String getTva() {
        return tva;
    }

    public void setTva(String tva) {
        this.tva = tva;
    }

    public String getProfessionDansBien() {
        return professionDansBien;
    }

    public void setProfessionDansBien(String professionDansBien) {
        this.professionDansBien = professionDansBien;
    }

    public String getInfosComplementaires() {
        return infosComplementaires;
    }

    public void setInfosComplementaires(String infosComplementaires) {
        this.infosComplementaires = infosComplementaires;
    }

    public String getGarant() {
        return garant;
    }

    public void setGarant(String garant) {
        this.garant = garant;
    }

    public Boolean getLocatairePrincipal() {
        return locatairePrincipal;
    }

    public void setLocatairePrincipal(Boolean locatairePrincipal) {
        this.locatairePrincipal = locatairePrincipal;
    }

    public Location createClone() {
       
        try {
            return (Location) super.clone();
        } catch (CloneNotSupportedException ex) {
            throw new IllegalStateException(ex);
        }
    }  
}
